//
//  UIImageViewFactory.m
//  ZouXiu
//
//  Created by zhou huajian on 11-1-27.
//  Copyright 2011 itotemstudio. All rights reserved.
//

#import "UIImageViewFactory.h"


@implementation UIImageViewFactory

+ (UIImageView*) newImageView:(CGRect) frame imageName:(NSString*) name {
	UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
	imageView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
	imageView.image = [UIImage imageNamed:name];
    imageView.backgroundColor = [UIColor clearColor];
	return imageView;
}

+ (UIImageView*) newImageView:(CGRect) frame image:(UIImage*) image {
	UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
	imageView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
//	imageView.backgroundColor = [UIColor clearColor];
	imageView.image = image;
	return imageView;	
}
@end
